from django.template import Library
from apps.web import models
from django.urls import reverse

register = Library()


@register.simple_tag
def str_len(num):
    if num < 100:
        num = str(num).rjust(3, '0')
    return '#{}'.format(num)
